
package votefordeleteservice;

import java.io.*;
import java.sql.*;


public class VoteForDeleteImpl implements VoteForDeleteIF{
    

	/* (non-Javadoc)
	 * @see votefordeleteservice.VoteForDeleteIF#voteForDelete(int, java.lang.String)
	 */
	public boolean voteForDelete(int comId, String roleName)
	{
		
		System.out.println("RBAC administrator has decided to support delete the target role from role hierarchy!");
		return hookMakeDecision(comId, roleName);
	}
	
	/**
	 * Programmers can use this hook method to add their vote logic
	 * @param comId		Id of the applicant company.
	 * @param roleName	Name of the target role.
	 * @return			true if support the voting
	 */
	private boolean hookMakeDecision(int comId, String roleName){
		return true;
	}
}

